

#ifndef _UPDATE_MAKER_H_
#define _UPDATE_MAKER_H_
#pragma once

#include "resource.h"


class AutoUpdateFile
{
public:
	enum OpSystem
	{
		xALL = 0,
		x86,
		x64,
		OsUnknown
	};
	enum Packers
	{
		Unpacked = 0,
		BZip2,
		Zip,
		PackUnknown
	};
	wstring m_sName;
	wstring m_sPath;
	OpSystem m_sys;
	Packers  m_packer;
	int64_t	 m_size;
	int64_t  m_packedSize;
	wstring m_sTTH;
	wstring m_sDownloadURL;
	
	wstring m_absPath;
	wstring m_sPackName;
};


typedef std::vector<AutoUpdateFile> AutoUpdateFiles;

class AutoUpdateModule
{
public:
	wstring m_sName;
	AutoUpdateFiles m_Files;
};

typedef std::vector<AutoUpdateModule> AutoUpdateModules;


class Updater
{
public:
	AutoUpdateFiles m_Files;
};

#endif // _UPDATE_MAKER_H_